Import-Module IsePack   

import-module RichardBerg-ISE

new-alias o Add-IseFile
new-alias c Remove-IseFile

# can't overwrite keyboard shortcuts :(
$psISE.CurrentPowerShellTab.AddOnsMenu.Submenus.Add('_Close File', {Remove-IseFile}, 'Ctrl+Q')  
$psISE.CurrentPowerShellTab.AddOnsMenu.Submenus.Add('_Undo Close', {Undo-IseCloseFile}, 'Ctrl+Shift+Q')
$psISE.CurrentPowerShellTab.AddOnsMenu.Submenus.Add('Close All But _This', {Remove-IseAllButThis}, 'Ctrl+Alt+Q')
$psISE.CurrentPowerShellTab.AddOnsMenu.Submenus.Add('_Save All', {Save-IseAll}, 'Ctrl+Shift+S') 

$psISE.CurrentPowerShellTab.AddOnsMenu.Submenus.Add("Copy With _Highlighting", {Copy-Colored}, "Ctrl+Shift+C")
$psISE.CurrentPowerShellTab.AddOnsMenu.Submenus.Add("Copy With HTML _Markup", {Copy-ColoredHTML}, "Ctrl+Shift+Alt+C")
$psISE.CurrentPowerShellTab.AddOnsMenu.Submenus.Add('Copy Full _Path', {Get-IseFilePath}, "Ctrl+Alt+C")
$psISE.CurrentPowerShellTab.AddOnsMenu.Submenus.Add('_Yank Line', {Remove-IseLine}, 'Ctrl+L')
$psISE.CurrentPowerShellTab.AddOnsMenu.Submenus.Add("_Function Template", {New-FunctionTemplate}, 'Ctrl+Alt+F')
